Repository navigation
Feature/issue 297 identity match mode - #86
Merged
Merged
Conversation
- FlowOperator、ProcessNodeOperator 新增可选 identity 字段:同一人员的不同身份由后端按 (id, identity) 区分 - 身份取值由业务侧定义(部门id、岗位编码等),框架只透传不解释;空串/缺省表示默认身份,0.3.0 之前的响应不含该字段 - 展示仍使用 name,不冻结身份名称;需要区分身份的宿主可自行渲染(后端详情/列表响应同步下发 identity) - 全部 11 个包版本锁定 0.3.0 并补充 CHANGELOG(与后端 0.3.0-SNAPSHOT 对齐) 验证:pnpm install + pnpm build 全部包构建通过(含 d.ts 生成)。
- flow-core: HttpClient 新增静态 defaultQueryParams,向所有请求注入公共 query 参数 - app-pc: 启动时注入 operatorIdentity(localStorage),右下角新增身份切换器 - 待办列表新增「身份」列,直观验证同一人员多身份待办隔离 - 用户管理移除身份字段(身份是运行期选择,不是用户主数据)
- flow-core HttpClient 新增 defaultQueryParamsPathPrefixes(默认 /api/): operatorIdentity 不再注入宿主自有接口,避免 /user/list 这类基于 SearchRequest 的列表接口把参数当实体字段解析,抛 Field operatorIdentity not found in class hierarchy - flow-core HttpClient 登录态失效时只 removeItem(token),不再 localStorage.clear(): 原实现会顺带抹掉宿主保存的身份 / 超时配置,出现「切换器显示 department1、 请求其实按默认身份发出」的假象 - app-pc 待办页顶部常显当前身份与隔离规则,并说明发起流程时未指定身份的审批人 待办落在默认身份,避免误判为待办丢失 - app-pc 身份切换器跟随 hashchange / storage 同步展示状态
- 删除待办页顶部「待办/已办/抄送按身份隔离」的 Alert,避免误导成换身份就看不到待办 - 身份切换器文案改为「身份只影响流程操作与脚本匹配,不影响列表可见范围」 - 保留列表「身份」列,仅作为记录归属身份的留痕展示 - 同步 config/identity.ts 与入口注释
- 新增 config/identity.ts 与 components/identity-switch:待办页顶部「操作身份」横条,点击弹出选择器,确认后刷新 - api/index.ts 注入 defaultQueryParams(仅 /api/ 前缀),发起/查询/审批统一携带 operatorIdentity - 待办列表补充记录归属身份展示;不使用悬浮球,避免遮挡审批页底部操作区
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.